{% extends "panel.html" %}
{% block content %}
	<div class="results">
	{% for result in results %}
		<div class="item">
			<div class="image">
			{% if result.image_url %}
				<img src="{{ result.image_url }}"/>
			{% else %}
				<img src="/img/image_not_found.jpg"/>
			{% endif %}
			</div>

			<div class="info">
				<a href="#{{result.uuid}}" class="outlet" outlet="product" methods="click">{{ result.title }}</a>
				<br/><br/>
				<p>
					{{ result.description|striptags|slice:"300" }}
					{% if result.description|striptags|length > 300 %}...{% endif %}
				</p>
			</div>

			<div class="price">
				Lowest Price: ${{ result.prices.0.price|floatformat:2 }}<br/>
				Condition: {{ result.prices.0.condition }}<br/>
				<a href="#add" class="outlet" outlet="cart_add" methods="click" pid="{{result.uuid}}" ttl="{{result.title}}" prc="{{result.prices.0.price}}" url="{{result.prices.0.purchase_url}}" vnd="{{result.prices.0.vendor}}">
					<img src="/img/weby/Shopping_Cart_Add.png">
				</a>
			</div>
		</div>
	{% endfor %}
	</div>
{% endblock %}
